package com.richpencil.utils;

public class Global {

	public final static String DEFAULT_SKINNAME = "default"; // 默认登录皮肤名称

	public final static String MENU_STYLE_DEFAULT = "index1"; // 默认菜单风格
	public final static String MENU_STYLE_2 = "index2"; // 菜单风格2
	public final static String MENU_STYLE_3 = "index3"; // 菜单风格3

	public final static String LOCAL_IP = "LOCAL_IP"; // 本地服务器IP地址
	public final static String REMOTE_IP = "REMOTE_IP"; // 客户端IP地址
	public final static String LOGIN_USER = "LOGIN_USER"; // 登录用户
	public final static String VShopREMOTE_IP = "VShopREMOTE_IP"; // 微商城客户端IP地址
	public final static String VShopLOGIN_USER = "VShopLOGIN_USER"; // 微商城登录用户
	public final static String WechatOrder_USER = "WechatOrder_USER"; // 微商城登录用户
	public final static String LOGIN_USER_MAIN_ORGAN = "LOGIN_USER_MAIN_ORGAN"; // 登录用户主机构
	public final static String LOGIN_USER_SUB_ORGAN = "LOGIN_USER_SUB_ORGAN"; // 登录用户所有子机构
	public final static String LOGIN_USER_SUB_ORGAN_IDS = "LOGIN_USER_SUB_ORGAN_IDS"; // 登录用户所有子机构IDs
	public final static String LOCAL_USER_PASSWD = "LOCAL_USER_PASSWD"; // 用户真实密码
	public final static String LOGIN_USER_POWCODEMAP = "LOGIN_USER_POWCODEMAP"; // 登录用户的权限编码集
	public final static String LOGIN_USER_POWURLMAP = "LOGIN_USER_POWURLMAP"; // 登录用户的权限链接内容集
	public final static String LOGIN_USER_MENUURLMAP = "LOGIN_USER_MENUURLMAP"; // 登录用户的菜单链接内容集

	public final static String TK_SHARE_PRODUCTID = "TK_SHARE_PRODUCTID"; // 行知园售票分享产品ID

	public final static String BeforePage = "BeforePage";// 平台登陆记录上级页面，各个系统注销时放回指定页面
	public final static String MainPage = "MainPage";
	public final static String action = "action";
	public final static String sys = "sys";
	public final static String devmode = "debug";

	public final static String CURRENT_ACCESS_URL = "CURRENT_ACCESS_URL"; // 登录用户当前访问链接
	public final static String CURRENT_LEFT_MENU_ROOT_CODE = "CURRENT_LEFT_MENU_ROOT_CODE"; // 当前访问左边菜单根节点树编码

	public final static String PARAM_TOPMENU_PARENT_TREE_CODE = "topMenuParentTreeCode"; // top菜单的父ID树编码的参数编码

	public final static String RES_ITEM_BACK_URL = "RES_ITEM_BACK_URL"; // 资源项管理页面返回链接
	public final static String PARAMETER_BACK_URL = "PARAMETER_BACK_URL"; // 参数管理页面返回链接

	public final static byte FALSE = 0; // 假
	public final static byte TRUE = 1; // 真
	public static final String USER_NAME = "USER_NAME"; // 用户名称

	public final static int USER_TYPE_OP_MIN = 1; // 最低级别操作用户
	public final static int USER_TYPE_OP_MAX = 4; // 最高级别操作用户
	public final static int USER_TYPE_AD_MIN = 5; // 最低级别管理用户
	public final static int USER_TYPE_AD_MAX = 8; // 最高级别管理用户
	public final static int USER_TYPE_DEV = 0; // 开发用户

	// public final static int ROLE_TYPE_OP = 1; // 操作用户角色
	// public final static int ROLE_TYPE_AD = 5; // 管理用户角色
	// public final static int ROLE_TYPE_DV = 9; // 开发用户角色

	public final static int STATE_OFF = 0; // 停用状态
	public final static int STATE_ON = 1; // 启用状态

	// 资源组类型
	public final static int GROUP_TYPE_LIST = 0; // 列表类型
	public final static int GROUP_TYPE_TREE = 1; // 树状类型

	// 资源项(编码)类型
	public final static int ITEM_TYPE_STRING = 0; // 字符串
	public final static int ITEM_TYPE_INT = 1; // 整数

	// 参数类型
	public final static String PARAM_TYPE_STRING = "string"; // 字符串
	public final static String PARAM_TYPE_INT = "int"; // 整数
	public final static String PARAM_TYPE_FLOAT = "float"; // 浮点数
	public final static String PARAM_TYPE_DATETIME = "datatime"; // 日期时间
	public final static String PARAM_TYPE_DATE = "date"; // 日期
	public final static String PARAM_TYPE_TIME = "time"; // 时间

	// 以下是资源组编码宏定义
	public final static String RES_GRP_TYPE = "resGrpType"; // 资源组类型
	public final static String RES_CODE_TYPE = "resCodeType"; // 资源编码类型
	public final static String FUNC_MENU_TYPE = "funcMenuType"; // 功能菜单类型
	public final static String PARAM_VALUE_TYPE = "paramValueType"; // 参数值类型
	public final static String USER_TYPE = "userType"; // 用户类型
	public final static String ROLE_TYPE = "roleType"; // 角色类型
	public final static String ORGAN_TYPE = "organType"; // 机构类型

	public final static byte[] AES_KEY = "Sino-bridge_@#*!".getBytes();

	// 通知命令
	public final static String CMD_PARAM_GROUP_CHANGE = "<cmd><name>paramGroupChange</name><groupCode>%s</groupCode></cmd>"; // 参数组变更
	public final static String CMD_RES_GROUP_CHANGE = "<cmd><name>resGroupChange</name><groupCode>%s</groupCode></cmd>"; // 资源组变更

	// 性能项定义名称
	public final static String MEMORY_USAGE = "PfmMemoryUsage"; // 内存利用率
	public final static String CPU_USAGE = "PfmCpuusage"; // CPU利用率
	public final static String FW_SESSION = "PfmFwsession"; // 防火墙Session数
	public final static String User_DefineDevPfm = "PfmUserDefineDevPfm"; // 自定义设备性能项

	public final static String IF_FLOW = "PfmInterfaceFlow"; // 端口进出流量
	public final static String IF_INOCTETS = "IfInOctetsSec";
	public final static String IF_OUTOCTETS = "IfOutOctetsSec";
	public final static String IF_INDISCARDS = "IfInDiscardsPercent";// 端口输出丢包率
	public final static String IF_OUTDISCARDS = "IfOutDiscardsPercent";// 端口输入丢包率

	public final static String IF_CRC = "PfmInterfaceCrc"; // 端口CRC
	public final static String IF_COLLISION = "PfmInterfaceCollision"; // 端口Collision数
	public final static String User_DefineItfPfm = "PfmUserDefineInterfacePfm"; // 自定义端口性能项

	public final static String Dev_ScanTime = "defaultScanTime"; // 设备默认轮询时间

	// 时序图类型
	public final static int XYBARCHART = 0;// 柱形图
	public final static int SERISECHART = 1;// 时序线形图

	// 事件等级cssName
	public final static String EVENT_SERVERITY = "event_severity";
	public final static String EVENT_NORMAL = "event_normal";

	// 监控间断判断周期个数
	public final static int PERIOD_NO = 5; // 超过轮询周期的PEROID_NO倍判断为监测数据中断

	// 服务器地址
	public final static String SOAP_SERVICE_URL = "SOAP_SERVICE_URL"; // soap服务器URL
	public final static String Case_SERVICE_URL = "CASE_SERVICE_URL"; // soap服务器URL
	public final static String SINONMS_PATH = "SinoNMSPath";
	public final static String SMTP_INFO = "smtpInfo"; // 邮件服务器信息
	public final static String SMTP_HOSTNAME = "hostName"; // 邮件服务器名称
	public final static String SMTP_VALIDATE = "validate"; // 邮件服务器是否需要验证
	public final static String SMTP_USERNAME = "hostUserName"; // 邮件服务器验证用户名
	public final static String SMTP_PASSWORD = "hostUserPassword"; // 邮件服务器验证用户密码

	//
	public static final String SCFILE_NAME = "file/salescontract/"; // 销售合同文件路径
	public static final String OFFICEPURCHASE_NAME = "file/suppliesPurchase/"; // 耗材采购文件路径
	public final static String SC_MAPRODUCT_FLAG = "MA"; // 销售合同续保产品标志
	public final static String SC_NOMAPRODUCT_FLAG = "N/A"; // 销售合同续保产品配件标志
	public final static Integer SC_MACONTRACT = 2; // MA合同类型标志PositionLevel
	public final static Integer SC_SERVICECONTRACT = 3; // 技术服务合同类型标志

	// 绘图分类
	/** 拓扑图 */
	public static final String GRAPH_TOPOLOGY = "1";
	/** 拓扑总图 */
	public static final String GRAPH_TOPOLOGY_TOP = "0";
	/** 网段图 */
	public static final String GRAPH_TOPOLOGY_NETSEGMENT = "1";

	public final static String CP_PRODUCTSUPPLIERTYPE = "ProductSupplierType"; // 产品供应商类型

	// telnet指令参数
	public static final int ED_Type = 110;
	public static final long LOGIN_DELAY_TIME_VALUE = 3000;// 自动执行命令间延时
	public static final long TC_DELAY_TIME_VALUE = 15000;// 自动执行命令间延时
	public static final String TC_DELAY_TIME = "telnetDistance";// 自动执行命令间延时
	public static final String ED_POLL_PERIOD = "pollPeriod";
	public static final String ED_POLL_BASE_TIME = "pollBaseTime";
	public static final long Telnet_Internal_Time = 50;// 自动执行telnet命令间的间隔时间

	// 自动巡检性能项支持协议标记
	public static final byte SUPPORT_SNMP = 1;// 支持SNMP方式
	public static final byte SUPPORT_TELNET = 1;// 支持Telnet方式

	public static final byte IS_MATCH_CASE = 1;// 区分大小写

	public static final int HANDWORK = 1;// 手工方式
	public static final int AUTOWORK = 0;// 定时方式

	public static final String SINONOC_TABLE_PATH = "\\file\\lookuptables"; // netcool外表文件保存路径
	public static final String NETCOOL_TABLE_PATH = "/opt/netcool/etc/rules/lookuptables/"; // netcool外表文件保存路径

	// 试用期控
	public static final String PERIODTIME = "PeriodTime";// 试用周期
	public static final String PERIODBEGINTIME = "PeriodBeginTime";// 试用开始时间

	public static final String DEVTOTAL = "DevTotal";// 设备总数
	public static final String MONITORTOTAL = "MonitorTotal";// 监控项总数
	public static final String NORMALTOTAL = "NormalTotal";// 正常项总数
	public static final String FAULTTOTAL = "FaultTotal";// 故障项总数
	public static final String WARNTOTAL = "WarnTotal";// 警告项总数
	public static final String UNKNOWNTOTAL = "UnknownTotal";// 未知项总数

	// telnet指令参数
	public static final long Telnet_CmdReturn_Time = 3000;// telnet等待命令返回结果时间
	public static final long While_TrueSleep_Time = 200;
	public static final long Telnet_LoginDelay_Time = 1000;

}
